package router

import (
	"github.com/gin-gonic/gin"
	"go-mall/app/client/api"
)

type GoodsRouter struct{}

func (*GoodsRouter) ClientGoodsRouter(publicRouter *gin.RouterGroup, privateRouter *gin.RouterGroup) {
	goodsApi := api.ClientApi.GoodsApi
	privateGoodsRouter := privateRouter.Group("goods")

	{
		privateGoodsRouter.GET("category", goodsApi.GoodsCategory) //获取商品分类数据
		privateGoodsRouter.GET("list")                             //获取商品列表
		privateGoodsRouter.GET("detail/id")                        //获取商品详情
		privateGoodsRouter.GET("search")                           //商品搜索

	}
}
